<?php 
namespace Login\Form;

 use Zend\Form\Form;

 class LoginForm extends Form
 {
     public function __construct($name = null)
     {
         // we want to ignore the name passed
         parent::__construct('login');

         $this->add(array(
             'name' => 'email',
             'type' => 'Text',
             'attributes' => array(
                'placeholder' => 'Email',
                 'required' => 'required',
                 'class' => 'form-control',
                 'id'=>'Email'
             ),
         ));
         $this->add(array(
             'name' => 'password',
             'type' => 'password',
             'attributes' => array(
                'placeholder' => 'Password',
                'id' => 'Password',
                 'required' => 'required',
                 'class' => 'form-control',
             ),
         ));
         $this->add(array(
             'name' => 'remember-me',
             'type' => 'checkbox',
             'options' => array(
                 'label' => 'Remember me',
             ),
         ));
         
         $this->add(array(
             'name' => 'reset',
             'attributes' => array(
                'type' => 'reset',
                 'value' => 'Reset',
                 'class' => 'btn btn-default btn-sm',
             ),
         ));
         
         $this->add(array(
             'name' => 'submit',
             'type' => 'Submit',
             'attributes' => array(
                 'value' => 'Sign in',
                 'class' => 'btn btn-success btn-sm',
             ),
         ));
     }
 }